/****************************************************
文件：CharacterBaseAttr.cs
作者：UnitySir
邮箱：zouajck@foxmail.com
日期：2021/07/28 20:07:36
功能：Nothing
*****************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


public class CharacterBaseAttr
{
    public string MName => mName;

    public int MMaxHp => mMaxHp;

    public float MMoveSpeed => mMoveSpeed;

    public string MIconSprite => mIconSprite;

    public string MPrefabName => mPrefabName;

    public float MCritRate => mCritRate;

    #region 基础属性 [值一旦初始化就不会发生变化]

    protected string mName;
    protected int mMaxHp;
    protected float mMoveSpeed;
    protected string mIconSprite;
    protected string mPrefabName;
    protected float mCritRate;

    #endregion

    public CharacterBaseAttr(string name, int maxHp, float moveSpeed, string iconSprite, string prefabName,
        float critRate)
    {
        mName = name;
        mMaxHp = maxHp;
        mMoveSpeed = moveSpeed;
        mIconSprite = iconSprite;
        mPrefabName = prefabName;
        mCritRate = critRate;
    }
    
}